The majority agreed to pass the bills in the Senate (in parliamentary jargon, they voted in favour of giving the bills a third reading). The bills will now be sent back to the House of Representatives for the Members of Parliament to decide whether they agree with the Senators' amendments. If so, the bills will become law.
You can follow the bills progress through Parliament on the bills' websites (see under 'External links').
How to find out more about the bills
Go to the bills digest to learn more about what the bills do and what issues they raise.
Clause 42 of the Australian Border Force Bill 2015 makes it an offence for an "entrusted person" (which includes Immigration and Border Protection workers) to make a record of confidential information or to disclose confidential information. See the bills digest for more information about the exceptions to this offence.
Comments in the media have suggested that this clause could lead to doctors being charged under this offence for revealing conditions in detention centres.