Oil ends week higher as investors take stock of Fed rate cuts