Church legislation on women bishops clears revision stage