closing the stable door after the horse has bolted [British] or closing the barn door after the horse has gone
acting too late, because the problem that the action would have prevented has already occurred
It is good to see the government taking positive action, even though it might look like closing the stable door after the horse has bolted.
Easy Learning Idioms Dictionary. Copyright © HarperCollins Publishers