Court refuses to quash secret file case against Trump, accuses him of taking files home while leaving White House