The U.S. Supreme Court on Tuesday grappled with a pair of cases from California and Michigan involving public officials blocking critics on social media, with the justices struggling to define when such conduct runs into constitutional limits on the government’s ability to restrict speech.