The Los Angeles to Sydney flight made a safe emergency landing shortly after takeoff, with passengers later rebooked on another plane.