President Biden told Russian President Vladimir Putin on July 9 that the United States will take “any necessary action” to defend U.S. infrastructure, the White House said, after Russia-based hackers carried out the largest known ransomware attack to date.