The Republican-led House voted convincingly Wednesday to approve a $602 billion defense policy bill after rejecting attempts by Democrats to close the detention facility at Guantanamo Bay, Cuba, and to repeal the war powers President Barack Obama relies on to fight the Islamic State (ISIS).

The legislation, which authorizes military spending for the fiscal year beginning Oct. 1, seeks to halt a decline in the combat readiness of the U.S. armed forces by purchasing more weapons and prohibiting further cuts in troop levels. But in a 17-page statement on the policy bill, the White House detailed its opposition to numerous provisions and said Obama would veto the legislation if it reached his desk.

The bill, approved 277-147, must be reconciled with a version the Senate is expected to consider by month’s end.