Portugal’s PM gets his way in defeat of spending bill