Austria has adopted one of Europe's toughest laws on refugees, days after a far-right politician surged to victory in the first round of a presidential election.