Jelena Ostapenko apologized on social media Saturday, three days after telling Taylor Townsend that she had “no class” and “no education” following their second-round match at the US Open.