An emotional Naomi Osaka made a triumphant US Open return by beating Jelena Ostapenko in a blockbuster first-round match.