Elon Musk's SpaceX is deepening its ties with U.S. intelligence and military agencies through classified contracts ranging in the billions of dollars.