A United Airlines flight bound for Tokyo lost engine power shortly after takeoff and returned safely to Dulles.