A Jordanian court has sentenced three men to death by hanging for carrying out a fatal mass shooting on a church last month.