The Justice Department reversed course and took back an effort to abandon an appeal against four big law firms that challenged President Trump’s punitive executive orders.