Dollar rallies against major rivals