The president sought to galvanize supporters a year after the Supreme Court overturned Roe v. Wade as Democrats hope the issue helps them win next year’s elections.