The Federal Trade Commission and 17 state attorneys general on Tuesday sued Amazon, claiming the company has unlawfully deprived rivals and undermined competition, resulting in higher prices on consumer products.