The United States Senate has approved a short-term funding bill to avert a potential government shutdown, providing more time for political leaders to negotiate a longer-term solution.