Anduril will invest $3.7 billion to develop a new shipyard in Maryland to build critical components for the Navy's Virginia-class submarines.