More great tools by the ADFS team...
Problems with the web.config files are one of the more common issues we see with ADFS/MOSS cases in PSS. Now there is a script with will make the modifications for you.
It is located on the SharePoint team blog and can be accessed here.