Tiger Woods stripped of Ryder Cup captaincy as judge allows golfer to leave US for treatment