The House is headed toward a final vote on a sweeping defense bill that authorizes $900 billion in military programs.