Anduril secured a Navy submarine contract worth up to $2.9 billion and announced a $3.7 billion Maryland shipyard expansion just days after the Pentagon appointed co-founder Palmer Luckey to a future weapons initiative.