Can Journals settle all legal processes related to accepted papers before publication on behalf of authors?
This isn't usually done. The authors are assumed to have gotten the permissions themselves. However your question is whether the journal "can". In that case, I'd say the answer is yes. They can, they just don't usually do it. Just about the only possible exception is if the author is a famous researcher and the journal is willing to go to great lengths to publish the manuscript.