A pair of major courtroom defeats for Meta and Google this week is intensifying legal pressure on social media companies.