Gibbsianizing nonequilibrium dynamics of artificial spin ice and other spin systems