WASHINGTON—The Justice Department sued to block AT&T Inc. from taking over Time Warner Inc. on Monday, a sweeping challenge to a deal it says would give one company too much control in a rapidly evolving media landscape.

AT&T Chief Executive Randall Stephenson said the suit “defies logic” and that the company would fight the case, the first major antitrust action under the Trump administration.

Few...