A divided House voted Tuesday to condemn President Trump’s racist remarks, with all but a handful of Republicans dismissing the rebuke as harassment while many Democrats pressed their leaders for harsher punishment of the president.