致力于 is formal and written. It implies sustained, serious commitment - not casual effort. Common in news, academic writing, and official statements.
grammar
致力于 is always followed by a noun or verb phrase: 致力于教育 (committed to education), 致力于改善环境 (committed to improving the environment). The 于 cannot be dropped.