The U.S. Navy spent billions on a ship they knew had massive problems.