When Rachel speaks to Ross the next day she says “can I be your girlfriend again?”
This suggests she wasn’t his girlfriend at the time of speaking.
So if she wasn’t his girlfriend, Ross was single and allowed to sleep with whatever consenting adult he wished.
They were on a break!