Halep earns injury comeback win, Gauff to face Osaka