A judge sharply questioned whether President Donald Trump had authority to proceed with a $400-million White House ballroom.