The Senate has given final passage to an annual military policy bill that will authorize $901 billion in defense programs.