The Church of Jesus Christ of Latter-day Saints indicated support Tuesday for legislation that would require states to recognize same-sex marriages performed under other states’ laws and repeal any federal law defining marriage as a union between a man and a woman, despite previously supporting efforts against same-sex marriage legalization.