I'd thought that the RAT would provide enough power to maintain wings level flight
Possibly true but for that autopilot must be ON. But with both engines out I suspect autopilot will switch off automatically and human intervention would be required to re-engage it. However I am not 777 pilot so can't tell for sure.