The Tomorrow War

When aliens invade Earth, humans discover they don't have enough man power to take them on. They figure out a way to draft soldiers from the past to help fight the war.

The title was originally "Ghostdraft."