It costs a lot more to become a lawyer in the U.S. than it does in other countries, according to an analysis of university fees across 50 countries.