Obama still had 9 months left in his term. It was his vacancy to fill. If another  justice leaves 9 months before Trump's term ends, the Republicans will expect to replace them. I guarantee that they won't hold off until "after the people have spoken."

I'm a little bit torn though, because all of Trump's other appointments have been horribly inappropriate, and Gorsuch actually IS qualified for the job.