The United States and Russia moved toward a head-spinning reset of their relationship on Tuesday, agreeing to work together on ending the Ukraine war, on financial investment, and on re-establishing normal relations. The meeting between senior officials from both countries was a striking display of bonhomie after three years of American efforts to isolate Moscow for its 2022 invasion.