If the state issued the check in 2017 then the 1099-G will be for 2017 and it will be expected on your 2017 return.