A court blocked the initial version because of what it said was unclear terminology. The legislation still requires the signature of Portugal’s president to become law, and he is known to have deep reservations.