Churches changing bylaws after same-sex marriage ruling