Thanks to a last-minute switched vote, the House of Representatives approved a measure today to ban 19 semiautomatic assault weapons that the bill's supporters said had no purpose other than to kill people quickly without having to take aim.