Jordan’s government has pledged a crackdown in response to an attack on a church funeral that left eight people dead.