The House of Representatives voted along party lines to pass a formal rebuke of the president's comments urging congresswomen to "go back" where they came from.