The House voted overwhelmingly on Wednesday afternoon to override President Bush’s veto of the $307 billion farm bill, setting the stage for the second veto defeat of Mr. Bush’s presidency.