An Extinction Rebellion cofounder was been given a suspended jail sentence after causing thousands of pounds worth of damage to a government building.