Australia's parliament has passed a motion calling on the US and UK to release Julian Assange, ahead of a crucial legal hearing.