"To carry the weight of the world on one's shoulders" indicates an emotional state, and even suggests that person does this unnecessarily.
For your sentence, use "to take on the duty of...": "After the death of his parents, he took on the duty of supporting his two brothers."
If you tried to use the idiom of "carrying the weight of the world", you'd actually be saying that he physically carried both brothers.