US House passes $585 billion defense spending bill