WASHINGTON — Congress approved legislation restricting Internet gambling just before beginning a lengthy recess, prompting a major shake-up in the online wagering world. News of the congressional action sent online gambling companies into a tailspin when stock markets reopened Oct. 2. Shares of PartyGaming, the largest of the firms, decreased 58 percent on the London Stock Exchange, with the company…