A federal judge denied President Donald J. Trump’s appeal to pause discovery in a lawsuit that alleges he violated a constitutional clause banning gifts and advantages from foreign and domestic governments, raising the possibility that transactions between the Trump International Hotel and foreign dignitaries might be made public.