WASHINGTON—In an apparent phishing attack that has severely compromised U.S. national security, sources confirmed Monday that President Joe Biden had inadvertently provided the military’s nuclear launch codes to a hacker who emailed him pretending to...