Court hearing gay marriage arguments from 4 states