Kidney function is definitely affected adversely by high fluoride levels. Kidney damage is often seen in cases where fluorosis is present.
I doubt if it is the actual kidney dysfunction causing the thyroid issues though. More likely is that the kidney dysfunction is also adversely affecting the adrenal glands sitting on top of the kidneys. Poor adrenal function will can cause hypothyroid issues.