Here's the answer:
“vamos colocar as coisas de volta nos trilhos”
Watch a real native speaker say it:
Here's how it sounds in a textbook:
Fun fact: the hundreds of thousands of people learning Portuguese with Memrise get this phrase correct 93.53% of the time!