WASHINGTON—Two Russian bombers that flew to Venezuela on Monday as a gesture of support for socialist President Nicolás Maduro will leave on Friday and return to Russia, the White House said, following a diplomatic spat over the visit.

White House spokeswoman Sarah Sanders said in a statement Wednesday the planned departure came after the Trump administration spoke with Russian officials.

The...