Markets end firm on fiscal stimulus plan