Offences including displaying hate symbols and terror crimes will now carry mandatory minimum jail sentences under new laws passed in federal parliament.