A far-right party has won a regional election in Germany for the first time since the Second World War.