I'm playing this on Xbox 360. Please help!
reload your autosave from when you entered the city and fight all over again. Can't explain why they are hostile to you.
check if you have a bounty.
I think you probably do have one so... after taking over windhelm the imperials are now seen as the guards so they will attack you and try to arrest you. Tullius and Rikke can't arrest you so they will just try to kill you.
If you do have a bounty then reload a save from before starting the quest so you can pay of the bounty.