You can be charged criminally for not following these laws that are behind paywalls.
In the ASTM v Public.Resource.Org case, I believe you are right, PRO agreed to voluntarily remove the laws while the case goes on. But that case has been going on since 2013 (https://ia801306.us.archive.org/33/items/gov.uscourts.dcd.16...). I suspect the law publishers are quite happy to have it drag on for another decade. The NFPA (publisher of NEC) makes over $80M a year, and the CEO is very well paid.