Sri Lanka politician freed after calling judges corrupt