A leading Australian barrister and former head of the Law Council of Australia has said the federal government’s plans to invest public money into fossil fuel production could be illegal, is open to serious legal challenge and is “at odds” with the purpose of the Australian Renewable Energy Agency (ARENA).