The ports of Long Beach and Los Angeles received federal approval Thursday to cooperate more vigorously on finding new ways to prevent…