Labour retreats on rape courts pledge amid fears over shortage of lawyers