A federal appeals panel has granted a request from the Justice Department to stay portions of a ruling a judge that had effectively paused the government’s investigation into former President Donald Trump’s potential mishandling of classified records after leaving office.