A federal appeals court temporarily blocked a July 4 ruling that limited the U.S. government's communications with social-media companies about their online content.