Crucial farm bills cleared in parliament amid opposition protests, set to be law