Everything has tradeoffs. This is legislation to try and reduce emissions from co2 and methane. It was suggested by a group of expects in the relevant fields, and our politicians went with it.
Growing vegetables obviously has less negative climate impact than beef.