When urine backs up into the kidney, the ureter acts as a barrier to prevent damage. This is important because high ureteral pressure can potentially harm the kidneys. In cases of kidney stones, the ureter can constrict to prevent pressure buildup, thereby protecting the kidneys from damage caused by urine backup into the renal pyramids.