A Boeing 777-200ER's journey from Amsterdam to San Francisco turned into a 24-hour nightmare with two unscheduled diversions.