Senate defeats pension bill opposed by unions