The president renewed his attacks on senior law enforcement officials, saying they favor Democrats.