Two Medicare programs that boost rural hospital payments would be temporarily extended as part of a stopgap federal spending bill that advanced past an initial vote in the Senate Tuesday.