The government has won a victory following a lengthy trial in a class action brought on behalf of businesses alleging they were harmed when the Rudd Government cancelled a program that subsidised home insulation installations during the economic downturn.