Pentagon ends policy that helped troops access abortions