A Scottish local council has been condemned for its proposal to tax expectant mothers for the privilege of having their babies in a hospital.