Hochul’s campaign consisted of little more than opposing Trump, and voters who wanted change bought the message.