The dispute, which some critics say tests the church’s autonomy, heads to the Texas Supreme Court on Wednesday.