The Justice Department has loosened the guidelines for the attorney general and other senior ​political appointees, allowing them to participate in political activities.