GOP takes over Minn. Legislature after 38 years