The U.S. government is temporarily barring passengers on certain flights from bringing electronics in carry-on luggage.