"take priority (over sth)" and "take precedence (over sth)" are close synonyms. "precedence" is more formal and less common than "priority".
There is a small difference in meaning: priority refers to importance, whereas precedence refers to sequence of time. Often, the difference is only one of emphasis.
Other verbs like "give" and "have" can be used similarly.