A divided and cautious Supreme Court confronted the constitutional question of same-sex marriage Tuesday, struggling with how to address a set of cases that could equalize the status of gay couples nationwide or reinforce divisions between states that recognize or reject such unions.