R.I. becomes 10th state to allow gay marriage