GOP OKs platform barring abortions, gay marriage