Evan Gershkovich, a Wall Street Journal reporter, and about two dozen other people were freed as part of a deal whose scope has little precedent in the post-Soviet era. President Biden said “their brutal ordeal is over” and plans to welcome the Americans home in a few hours.