That's.....a lot of water. You likely didn't do any long term damage to your kidneys. However, you likely did temporarily wreak havoc on your electrolyte balance, which is why you had the fever and the shakes. By drinking plain water (which I assume is what you did), you diluted the electrolytes like sodium, potassium, etc and that caused the issues you had. They'll come back into balance as you eat and drink normally, so, again, I doubt any permanent damage was done.