The government must give the justice system more resources, says the Law Society, as court waiting times creep above two years.