A United Airlines flight made an emergency landing after the plane&#8217;s engine gave out over the ocean