Dollar holds gains, heads for biggest weekly rise since February