The city’s top lawyer is headed to the state’s highest court to argue a case that will decide the fate