Reactive Synthesis for Finite-Horizon Robot Tasks