A United ght from New York made an emergency landing outside Washington after a fire broke out in the plane’s cockpit, a spokeswoman for the Federal Aviation Administration said.