The Albanese government’s tougher gun laws, brought to parliament in response to the Bondi massacre, have passed the lower house.