US lawmakers pass short-term deal to avoid government shutdown