The Republican-majority House voted 216 to 210 against the first resolution and 213 to 211 against the second, with both votes almost exclusively along party lines.