If there was a problem, and a person is able to solve the problem, you would say "Thank you for handling this matter."
You could also say "Thank you for dealing with this matter".
After the person takes care of the situation, and followed up on the problem until it was solved, you would say "Thank you for your follow up action". Or thank you for following up on this situation."