The New York attorney general and the state judge overseeing Donald Trump’s civil fraud case told a midlevel appeals court that the former president must wait for a final decision on his challenges to two gag orders before he can ask the state’s highest court to intervene.