If might be easier if you used PowerShell to fix this. You can use the test-computersecurechannel command to test and repair the connection.
If needed, here is a detailed guide:
http://deployhappiness.com/the-trust-relationship-between-this-workstation-and-the-primary-domain-failed/