A federal district court upheld the New York City Council’s law barring the enforcement of certain personal guaranties through March 2021.