Tens of thousands of residents have been evacuated and Gov. Gavin Newsom has declared an emergency as officials try to thwart an explosion at the facility in Orange County.