Former Social Security judge pleads guilty to taking bribes