Pentagon: $10B cloud contract that snubbed Amazon was legal