US federal judge has ordered White House staff under President Donald Trump to continue complying with the Presidential Records Act.