Radek Stepanek beat Dusan Lajovic in three sets to give Czech Republic a 3-2 victory over Serbia in the Davis Cup final in Belgrade.