Temporary custody agreement signed for Brangelina kids