In the summer of 2014, Sharon Casola was preparing to move to New York City to begin working as an associate at Latham & Watkins.

A recent graduate of University of Virginia School of Law, she had not yet found out whether she’d passed the bar exam, which would ensure her employment at Latham. Still, Casola had to commit to a yearlong lease on an apartment in one of the most expensive cities in the country.