Congress added billions of dollars beyond the Pentagon’s budget request for research and procurement projects that receive little scrutiny.