Hamas adopted a strident tone after its cabinet won approval in the Palestinian parliament, with one MP declaring "jihad is our way".