Two foreign-born drug offenders have lost a High Court case seeking to expand a ruling against indefinite detention and claim compensation.