A Sri Lankan court granted bail to 27 of 41 migrants who were returned to the country by Australia after a controversial mid-sea transfer, with one of them slamming Canberra for its lack of human rights.