If you marry in the US, you'll have to obtain your spousal visa before you return to the UK. If you apply in person (NY, LA, Chicago), you can have it the same day, provided all of your documentation is in order. If you apply by post, it shouldn't take more than a couple of weeks.