Pope Francis has formally approved allowing priests to bless same-sex couples.