Chafee signs gay marriage into law