Daria Kasatkina's hopes of a big US Open run have been scuppered by a resurgent Naomi Osaka at Flushing Meadows.