This method seems to have been removed from M2, wanting to understand the reasoning for this one. We use it to temporarily set carriers to enabled so that we can call in a backup scenario.
I've checked the M2 code and all the way up the chain there is no access to change the config values dynamically from what I can see.