The decision follows decades of debate and gradual progress towards gender equality in the church.