A major onshore wind energy project in Caerphilly has secured a government contract.