US buys time with 'fiscal cliff' deal